from rest_framework.urls import path
from . import views
from rest_framework.routers import DefaultRouter

app_name="stuff"

router = DefaultRouter(trailing_slash=False)
router.register('staff',views.StuffViewSet,basename='staff')

urlpatterns = [
    path('departments',views.DepartmentListView.as_view(),name="department"),
    # path('staff',views.StuffView.as_view(),name="staff"),
    path('download',views.StaffDownloadView.as_view(),name='download_staff'),
    path('upload',views.StaffUploadView.as_view(),name="upload_staff"),
    path('active',views.ActiveStaffView.as_view(),name="active_staff"),
    path('celery/test',views.CeleryTest.as_view(),name="celery_test")
] + router.urls